<html>
<body>
Reports safe cast with <code>return</code> that can be replaced with <code>if</code> type check.
<p>Using corresponding functions makes your code simpler.</p>
<p>The quick-fix replaces the safe cast with <code>if</code> type check.</p>
<p><b>Example:</b></p>
<pre><code>
  fun test(x: Any) {
      x as? String ?: return
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun test(x: Any) {
      if (x !is String) return
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>